<template>
  <div>
    <el-menu-item-group
      :title="item.title"
      v-for="(item, i) in submenuItemTitle"
      :key="i"
    >
      <el-menu-item :index="'/create/' + item.path"
        >新建{{ item.title }}</el-menu-item
      >
      <el-menu-item :index="'/list/' + item.path"
        >{{ item.title }}列表</el-menu-item
      >
    </el-menu-item-group>
  </div>
</template>

<script>
export default {
  props: {
    submenuItemTitle: {
      type: Array,
      default () {
        return []
      }
    },
  },
}
</script>

<style scoped>
</style>